# todo 其它数据类型转化为集合类型
# 作用 ： 可以去重
# TODO str => set
str1 = 'hello world'
s1 = set(str1)
print(s1)

# todo list -> set
list1 = ['a','b','a']
s2 = set(list1)
print(s2)

# todo dict -> set
# keys
dict1 = {'name':'hello','age':18, 'stu_no':18}
s3 = set(dict1)
print(s3)

s4 = set(dict1.values())  #将dict1的值转化为集合
print(s4)
